layui.use(["layer", "laytpl", "form"], function() {
	var $ = layui.jquery,
		layer = layui.layer,
		laytpl = layui.laytpl;
	per = parent.layui.layer, form = layui.form();
	$(".top-open-app").on("click", function() {
		var url = $(this).attr("href"),
			title = $(this).text();
		var width = parent.layui.jquery(".desktop-container").width() * 0.7;
		var height = parent.layui.jquery(".desktop-container").height() * 0.75;
		per.open({
			type: 2,
			title: title,
			shadeClose: true,
			shade: false,
			maxmin: true,
			area: [width + "px", height + "px"],
			content: url,
			zIndex: per.zIndex + 1,
			success: function(layero, index) {
				var pindex = per.getFrameIndex(window.name);
				var alldesktopapp = layui.data("desktop-app")["desktop-app-" + pindex];
				if (!alldesktopapp) {
					alldesktopapp = [index]
				} else {
					alldesktopapp.push(index)
				}
				layui.data("desktop-app", {
					key: "desktop-app-" + pindex,
					value: alldesktopapp
				})
			}
		});
		return false
	});
	$(".open-this-app").on("click", function() {
		var url = $(this).attr("href"),
			title = $(this).text(),
			width = "500",
			height = "500";
		layer.open({
			type: 2,
			title: title,
			shadeClose: true,
			shade: false,
			maxmin: true,
			area: [width + "px", height + "px"],
			content: url,
			zIndex: layer.zIndex + 1,
			success: function(layero, index) {}
		});
		return false
	})
});

if($('.cssout').hasClass('rightNav')){
//搜索框
}else{
$("input[type='text']").removeAttr("style");	
$("select").removeAttr("style");	
}

var jqcontent=$.trim($("textarea").val());
$("textarea").val(jqcontent)